{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <!-- 表单 -->
                <form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
                    <!-- 表单字段区域 -->
                    <div class="box-body" style="min-height: 500px;">
                        <div class="form-group">
                            <label for="APPID" class="col-sm-2 control-label">AppID</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="APPID" name="APPID" value="{$config.APPID|default=''}" placeholder="请输入AppID" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="APPSECRET" class="col-sm-2 control-label">AppSecret</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="APPSECRET" name="APPSECRET" value="{$config.APPSECRET|default=''}" placeholder="请输入AppSecret" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="MCHID" class="col-sm-2 control-label">商户号</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="MCHID" name="MCHID" value="{$config.MCHID|default=''}" placeholder="请输入AppSecret" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="WXPAYKEY" class="col-sm-2 control-label">支付密钥</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="WXPAYKEY" name="WXPAYKEY" value="{$config.WXPAYKEY|default=''}" placeholder="请输入支付密钥" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="notify_url" class="col-sm-2 control-label">回调地址</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="notify_url" name="notify_url" value="{$config.notify_url|default=''}" placeholder="请输入回调地址" type="text" class="form-control field-text">
                            </div>
                        </div>
                    </div>
                    <!-- 表单底部 -->
                    <div class="box-footer">
                        {:token()}
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    保存
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
<script>
    /** 表单验证 **/
    $('#dataForm').validate();
</script>
{/block}